package com.opi.dao;

import org.apache.log4j.Logger;
import com.opi.bean.CpuBean;

public class CpuDao extends BaseDao{

	private String sql = "";
	private  Logger logger = Logger.getLogger(CpuDao.class);
	
	public boolean addCpuInfo(CpuBean cpuBean){
		sql = "INSERT INTO "+cpuBean.getTable()+" (value,ctime) VALUES"
				+ " ('"+cpuBean.getValue()+"','"+cpuBean.getCtime()+"')" ;
		logger.info(sql);
		return adu(sql);
	}
	
}
